package com.ruoyi.system.mapper.biz;

import java.util.List;
import com.ruoyi.system.domain.biz.BmAmountDetailRecord;

/**
 * 会员消费明细Mapper接口
 * 
 * @author ruoyi
 * @date 2022-11-18
 */
public interface BmAmountDetailRecordMapper 
{
    /**
     * 查询会员消费明细
     * 
     * @param id 会员消费明细主键
     * @return 会员消费明细
     */
    public BmAmountDetailRecord selectBmAmountDetailRecordById(Long id);

    /**
     * 查询会员消费明细列表
     * 
     * @param bmAmountDetailRecord 会员消费明细
     * @return 会员消费明细集合
     */
    public List<BmAmountDetailRecord> selectBmAmountDetailRecordList(BmAmountDetailRecord bmAmountDetailRecord);

    /**
     * 新增会员消费明细
     * 
     * @param bmAmountDetailRecord 会员消费明细
     * @return 结果
     */
    public int insertBmAmountDetailRecord(BmAmountDetailRecord bmAmountDetailRecord);

    /**
     * 修改会员消费明细
     * 
     * @param bmAmountDetailRecord 会员消费明细
     * @return 结果
     */
    public int updateBmAmountDetailRecord(BmAmountDetailRecord bmAmountDetailRecord);

    /**
     * 删除会员消费明细
     * 
     * @param id 会员消费明细主键
     * @return 结果
     */
    public int deleteBmAmountDetailRecordById(Long id);

    /**
     * 批量删除会员消费明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBmAmountDetailRecordByIds(String[] ids);

    public int totalSurplus();
    public int totalActiveNum();
    public int totalCosted();
    public int sumPlayNum();
}
